/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import java.sql.Time;
import java.util.Date;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Temporal;

/**
 *
 * @author Dao Thai Duy
 */
@Entity
public class FnBReservationEntity extends ReservationEntity implements Serializable {
    private static long serialVersionUID = 1L;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public static void setSerialVersionUID(long aSerialVersionUID) {
        serialVersionUID = aSerialVersionUID;
    }
    
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date dateReserved;
    private Time timeBegin;
    private Time timeEnd;
    private int noOfPeople;
    @OneToMany(mappedBy="fandBReservation")
    private List<ReservedTableEntity> reservedTable= new ArrayList<ReservedTableEntity>();
    @OneToMany(mappedBy="fandBReservation")
    private List<ReservedMealEntity> reservedMeal= new ArrayList<ReservedMealEntity>();
    @OneToMany(mappedBy="fandBReservation")
    private List<ReservedSetMealEntity> reservedSetMeal= new ArrayList<ReservedSetMealEntity>();
    

 
    @Override
    public String toString() {
        return "entity.FandBReservation[ id=" + getId() + " ]";
    }

    public Date getDateReserved() {
        return dateReserved;
    }

    public void setDateReserved(Date dateReserved) {
        this.dateReserved = dateReserved;
    }

    public Time getTimeBegin() {
        return timeBegin;
    }

    public void setTimeBegin(Time timeBegin) {
        this.timeBegin = timeBegin;
    }

    public Time getTimeEnd() {
        return timeEnd;
    }

    public void setTimeEnd(Time timeEnd) {
        this.timeEnd = timeEnd;
    }

    public int getNoOfPeople() {
        return noOfPeople;
    }

    public void setNoOfPeople(int noOfPeople) {
        this.noOfPeople = noOfPeople;
    }

    public List<ReservedTableEntity> getReservedTable() {
        return reservedTable;
    }

    public void setReservedTable(ArrayList<ReservedTableEntity> reservedTable) {
        this.reservedTable = reservedTable;
    }

    public List<ReservedMealEntity> getReservedMeal() {
        return reservedMeal;
    }

    public void setReservedMeal(ArrayList<ReservedMealEntity> reservedMeal) {
        this.reservedMeal = reservedMeal;
    }

    public List<ReservedSetMealEntity> getReservedSetMeal() {
        return reservedSetMeal;
    }

    public void setReservedSetMeal(ArrayList<ReservedSetMealEntity> reservedSetMeal) {
        this.reservedSetMeal = reservedSetMeal;
    }
    
}
